FROM ubuntu:openjdk-8
MAINTAINER caoawei@aliyun.com

RUN mkdir -p /opt/app/id-service/ && mkdir -p /opt/app/id-service/bin/ && mkdir -p /opt/app/id-service/config/ && mkdir -p /opt/app/id-service/logs/ && mkdir -p /opt/app/id-service/jar/ && mkdir -p /opt/app/id-service/dump/

ADD id-service/ /opt/app/id-service/

RUN chmod -R +x /opt/app/id-service/bin/start.sh

CMD ["/opt/app/id-service/bin/start.sh"]